﻿using BCEntity.CRM.BigCustomerTradeRecord;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BCData.CRM.BigCustomerTradeRecord
{
    public interface IBigCustomerTradeRecordData
    {
        Task<bool> DeleteAsync(long bigCustomerTradeRecordId);
        Task<BigCustomerTradeRecordEntity> GetEntityAsync(long bigCustomerTradeRecordId);
        Task<(IEnumerable<BigCustomerTradeRecordEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        Task<BigCustomerTradeRecordEntity> InsertAsync(BigCustomerTradeRecordEntity entity);
        Task<BigCustomerTradeRecordEntity> UpdateAsync(BigCustomerTradeRecordEntity entity);
    }
}